/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.kleintjes.behavioral.memento_pattern.model;

/**
 *
 * @author Hughan.Kleintjes.hughanK@gmail.com
 */
public class DietInfoCaretaker {
    
    Object objMemento;
    
    public void saveState(DietInfo dietInfo) {
        objMemento = dietInfo.save();
    }
    
    public void restoreState(DietInfo dietInfo) {
        dietInfo.restore(objMemento);
    }
    
    
}
